/
setup.py
executable file
·43 lines (35 loc) · 1.22 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
from setuptools import setup, find_packages
from distutils.util import convert_path
import os
from os import listdir
from os.path import isfile, join
main_ns = {}
ver_path = convert_path('pyfy/__version__.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
mypath = os.path.dirname(os.path.abspath(__file__))
print([f for f in listdir(mypath) if isfile(join(mypath, f))])
with open("requirements.txt", "r") as f:
requirements = f.read().splitlines()
with open("test_requirements.txt", "r") as f:
test_requirements = f.read().splitlines()
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setup(
name=main_ns['__name__'],
version=main_ns['__version__'],
author=main_ns['__author__'],
author_email=main_ns['__author_email__'],
license=main_ns['__license__'],
description=main_ns['__description__'],
long_description=long_description,
long_description_content_type="text/markdown",
install_requires=requirements,
tests_require=test_requirements,
url="https://github.com/omarryhan/pyfy",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
)