Skip to content

Commit

Permalink
First version of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dprada committed Jul 15, 2022
1 parent 45784b4 commit cdc08c5
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"""
OpenPocket
Short description
"""
import sys
from setuptools import setup, find_packages
import versioneer

short_description = __doc__.split("\n")

# from https://github.com/pytest-dev/pytest-runner#conditional-requirement
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []

try:
with open("README.md", "r") as handle:
long_description = handle.read()
except:
long_description = "\n".join(short_description[2:])

setup(
name='openpocket',
author='UIBCDF Lab',
author_email='[email protected]',
description=short_description[0],
long_description=long_description,
long_description_content_type="text/markdown",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
license='MIT',
packages=find_packages(),
include_package_data=True,
setup_requires=[] + pytest_runner,
platforms=['Linux', 'Unix', 'Mac OS-X', 'Windows'],
package_dir={'openpocket': 'openpocket'},
scripts=[],
url='http://uibcdf.org',
download_url ='https://github.com/uibcdf/OpenPocket',
install_requires=[
],
python_requires=">=3.7"
)

0 comments on commit cdc08c5

Please sign in to comment.