forked from particledatagroup/api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (45 loc) · 1.57 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Customize location of .pypirc file
# Credit: https://stackoverflow.com/questions/37845125/custom-location-for-pypirc-file
import os
from distutils.command.register import register as register_orig
from distutils.command.upload import upload as upload_orig
class register(register_orig):
def _get_rc_file(self):
return os.path.join('.', '.pypirc')
class upload(upload_orig):
def _get_rc_file(self):
return os.path.join('.', '.pypirc')
# Standard package setup
from setuptools import setup, find_packages
with open("README.md","r") as fh:
long_description = fh.read()
setup(
name = 'pdg',
version = '0.0.6',
author = 'Particle Data Group',
author_email = '[email protected]',
description = 'Python API for accessing PDG data',
long_description = long_description,
long_description_content_type = 'text/markdown',
url = 'https://pdg.lbl.gov',
license = 'Modified BSD',
packages = find_packages(),
package_data={"pdg": ["pdg.sqlite"]},
install_requires = ['SQLAlchemy>=1.4'],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Database :: Front-Ends',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics'
],
keywords = 'PDG, particle physics',
cmdclass={
'register': register,
'upload': upload
}
)