Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup rs-booster package for PyPI release #16

Merged
merged 1 commit into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
],
)