-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (39 loc) · 1.33 KB
/
Copy pathsetup.py
File metadata and controls
42 lines (39 loc) · 1.33 KB
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
import setuptools
from distutils.dir_util import copy_tree
from pathlib import Path
PACKAGE_NAME='ZTF'
MODULE_NAME='ZTF'
import shutil, os
os.makedirs(os.path.dirname(PACKAGE_NAME + '/README.md'), exist_ok=True)
shutil.copy('README.md', PACKAGE_NAME + '/README.md')
def readme():
with open('README.md', 'r') as fh:
long_description = fh.read()
return long_description
v = Path(MODULE_NAME + '/version').open(encoding = 'utf-8').read().splitlines()
setuptools.setup(
name='ZTF',
version=v[0].strip(),
author='Rahul Bhadani',
author_email='[email protected]',
description='A package ZTF.',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/rahulbhadani/ZTF',
packages=setuptools.find_packages(),
install_requires=[
l.strip() for l in Path('requirements.txt').open(encoding = 'utf-8').read().splitlines()
],
classifiers=[
'Programming Language :: Python :: 3',
'Framework :: AsyncIO',
'Topic :: Communications',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: MIT License',
],
keywords='python',
include_package_data=True,
package_data={'ZTF': ['README.md','version']},
zip_safe=False
)
os.remove('ZTF/README.md')