Skip to content

Commit

Permalink
Merge pull request #16 from Hekstra-Lab/pypi_release
Browse files Browse the repository at this point in the history
Setup rs-booster package for PyPI release
  • Loading branch information
JBGreisman committed Aug 2, 2022
2 parents ab03a87 + 1974645 commit 9b56a98
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 3 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE
include rsbooster/VERSION
1 change: 1 addition & 0 deletions rsbooster/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.3
9 changes: 9 additions & 0 deletions rsbooster/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Version number for rsbooster
def getVersionNumber():
import pkg_resources

version = pkg_resources.require("rs-booster")[0].version
return version


__version__ = getVersionNumber()
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
44 changes: 41 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,40 @@
from setuptools import setup, find_packages


# Get version number
def getVersionNumber():
with open("rsbooster/VERSION", "r") as vfile:
version = vfile.read().strip()
return version


__version__ = getVersionNumber()

DESCRIPTION = "Useful scripts for analyzing diffraction"
LONG_DESCRIPTION = """
rs-booster contains commandline scripts for diffraction data analysis tasks.
This package can be viewed as a "booster pack" for reciprocalspaceship.
"""
PROJECT_URLS = {
"Bug Tracker": "https://github.com/Hekstra-Lab/rs-booster/issues",
"Source Code": "https://github.com/Hekstra-Lab/rs-booster",
}


setup(
name="rs-booster",
version="0.0.3",
packages=find_packages(),
include_package_data=True,
version=__version__,
license="MIT",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
author="Jack B. Greisman",
author_email="greisman@g.harvard.edu",
packages=find_packages(),
description="",
url="https://github.com/Hekstra-Lab/rs-booster",
project_urls=PROJECT_URLS,
python_requires=">3.7",
install_requires=["reciprocalspaceship", "matplotlib", "seaborn"],
entry_points={
"console_scripts": [
Expand All @@ -23,4 +51,14 @@
"rs.find_difference_peaks=rsbooster.realspace.find_peaks:find_difference_peaks",
]
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
],
)

0 comments on commit 9b56a98

Please sign in to comment.