-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (35 loc) · 1.25 KB
/
setup.py
File metadata and controls
39 lines (35 loc) · 1.25 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
from setuptools import setup, find_packages
import sys
sys.path.append(".")
import codecs
import os
from setup.package_info import PACKAGE_NAME, PACKAGE_AUTHOR, PACKAGE_DESCRIPTION, PYTHON_REQUIRES, CLASSIFIERS, SETUP_REQUIRES
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r', encoding='utf-8') as fp:
return fp.read()
# Read the README.md file
long_description = read('readme.md')
# Read requirements from requirements.txt
with open('requirements.txt') as f:
requirements = f.read().splitlines()
setup(
name=PACKAGE_NAME,
use_scm_version={"fallback_version": "0.0.0"},
setup_requires=SETUP_REQUIRES,
description=PACKAGE_DESCRIPTION,
long_description=long_description,
long_description_content_type='text/markdown',
author=PACKAGE_AUTHOR,
url="https://github.com/Suke0811/fspin",
project_urls={
"Source": "https://github.com/Suke0811/fspin",
"Tracker": "https://github.com/Suke0811/fspin/issues",
},
license='MIT',
packages=find_packages(include=[PACKAGE_NAME, PACKAGE_NAME + '.*']),
include_package_data=True,
install_requires=requirements,
classifiers=CLASSIFIERS,
python_requires=PYTHON_REQUIRES,
)