ED_LRR/setup.py

84 lines
2.3 KiB
Python
Raw Normal View History

import sys
import distutils.cmd
import distutils.log
from setuptools import find_packages, setup
2019-07-14 22:43:57 +00:00
from setuptools_rust import Binding, RustExtension, Strip
with open("README.md", "r") as fh:
long_description = fh.read()
2019-07-14 22:43:57 +00:00
setup(
name="ed_lrr_gui",
version_format="{tag}.dev{commitcount}+{gitsha}",
2019-07-14 22:43:57 +00:00
author="Daniel Seiller",
author_email="earthnuker@gmail.com",
description="Elite: Dangerous long range route plotter",
long_description=long_description,
long_description_content_type="text/markdown",
2019-07-14 22:43:57 +00:00
url="none yet",
rust_extensions=[
RustExtension(
"_ed_lrr",
path="rust/Cargo.toml",
binding=Binding.PyO3,
2020-02-05 23:24:24 +00:00
rustc_flags=["--emit=asm"],
strip=Strip.No,
2019-09-28 17:29:30 +00:00
debug=False,
2019-07-14 22:43:57 +00:00
native=True,
)
],
packages=find_packages(),
entry_points={"console_scripts": ["ed_lrr = ed_lrr_gui.__main__:main"]},
install_requires=[
"appdirs",
"PyYAML",
"requests",
"python-dateutil",
"pyperclip",
"click",
"tqdm",
"PyQt5",
"click-default-group",
"profig",
2020-02-05 23:24:24 +00:00
"ujson",
"colorama",
"svgwrite",
],
setup_requires=[
"setuptools",
"setuptools-rust",
"wheel",
"pytest-runner",
"setuptools-git-version",
],
extras_require={
2020-02-05 23:24:24 +00:00
"test": ["pytest", "pytest-cov", "pytest-dependency"],
"dev": ["black", "jinja2", "tsp"],
"web": [
"flask",
2020-02-05 23:24:24 +00:00
"gevent",
"webargs",
2020-02-05 23:24:24 +00:00
"flask-executor",
"flask-wtf",
"flask-user",
"flask-debugtoolbar",
"flask-bootstrap4",
"flask-sqlalchemy",
2020-02-05 23:24:24 +00:00
"flask-nav",
"flask-admin",
"sqlalchemy_utils[password]",
],
},
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Rust",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: OS Independent",
],
include_package_data=True,
2019-07-14 22:43:57 +00:00
zip_safe=False,
)