-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·47 lines (40 loc) · 1.35 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
# coding: utf-8
from __future__ import unicode_literals
import codecs
import os
from setuptools import find_packages, setup
try:
from pip.req import parse_requirements
from pip.download import PipSession
except ImportError:
from pip._internal.req import parse_requirements
from pip._internal.download import PipSession
rf = codecs.open(os.path.join(os.path.dirname(__file__), "README.txt"), "r")
with rf as readme:
README = readme.read()
with PipSession() as s:
requirements = parse_requirements(
os.path.join(os.path.dirname(__file__), "requirements_as_lib.txt"), session=s
)
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name="dev-cli",
version="0.1.0",
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
license="WTFPL",
description="A CLI interface for dev.to",
long_description=README,
url="https://github.com/Xowap/DEV-CLI",
install_requires=[str(x.req) for x in requirements],
author="Rémy Sanchez",
author_email="remy.sanchez@hyperthese.net",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3 :: Only",
],
)