-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build-n-publish: | ||
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
continue-on-error: true | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
- name: Publish distribution 📦 to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,24 +6,17 @@ This repository contains core functions and classes used by the BALDR project (B | |
|
||
## Prerequisites | ||
|
||
- Python 3.7+ | ||
- Python 3.7 | ||
|
||
## Installation | ||
|
||
This section will assume you have: | ||
|
||
- installed Python 3.7 or higher; and | ||
- cloned this repo | ||
|
||
With the above done, perform the following: | ||
|
||
``` | ||
pip install <path to repository> | ||
pip install riid | ||
``` | ||
|
||
### Data Directory (optional) | ||
|
||
Some functions are usable only if you set the `PYRIID_DATA_DIR` environment variable to a path to some directory on your computer. | ||
Some *convenience* functions are usable only if you set the `PYRIID_DATA_DIR` environment variable to a path to some directory on your computer. | ||
|
||
## Examples | ||
|
||
|
@@ -48,8 +41,13 @@ Please make sure to update tests as appropriate and adhere to our [code of condu | |
|
||
## Authors | ||
|
||
Current: | ||
|
||
- **Tyler Morrow** - [email protected] | ||
- **Nathan Price** - [email protected] | ||
|
||
Past: | ||
|
||
- [Travis McGuire](https://github.com/traviemcg) | ||
- Original creator of the `PoissonBayes` model. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
# Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS). | ||
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights in this software. | ||
"""Simple setup script for installing the core package. | ||
""" | ||
from setuptools import setup, find_packages | ||
import platform | ||
import sys | ||
|
||
from setuptools import find_packages, setup | ||
|
||
python_version_min = (3, 7, 0) | ||
python_version_max = (3, 7, 11) | ||
required_python_version_str = '.'.join(map(str, python_version_min[:2])) | ||
if python_version_min < sys.version_info > python_version_max: | ||
print("You are using Python {}. Python =={} is required.".format(platform.python_version(), | ||
required_python_version_str)) | ||
sys.exit(-1) | ||
|
||
setup( | ||
name="riid", | ||
version="1.0.0", | ||
description="Machine learning-based models and utilities for radioisotope identification", | ||
author="Tyler Morrow,Nathan Price", | ||
author_email="[email protected],[email protected]", | ||
url="https://www.sandia.gov", | ||
url="https://github.com/sandialabs/PyRIID", | ||
packages=find_packages(), | ||
install_requires=[ | ||
"tensorflow==2.0.0", | ||
|
@@ -21,4 +34,22 @@ | |
"tqdm", | ||
"seaborn==0.10.1" | ||
], | ||
# PyPI package information. | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Education', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: BSD License', | ||
'Topic :: Scientific/Engineering', | ||
'Topic :: Scientific/Engineering :: Mathematics', | ||
'Topic :: Scientific/Engineering :: Artificial Intelligence', | ||
'Topic :: Software Development', | ||
'Topic :: Software Development :: Libraries', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.7' | ||
], | ||
license='BSD-3', | ||
keywords='pyriid riid machine learning', | ||
) |