-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
52 lines (45 loc) · 1.91 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
48
49
50
51
52
#!/usr/bin/env python
import os
from setuptools import find_packages, setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname), encoding="utf-8").read()
def get_version():
with open("tilingsgui/__init__.py", encoding="utf8") as init_file:
for line in init_file.readlines():
if line.startswith("__version__"):
return line.split(" = ")[1].rstrip()[1:-1]
raise ValueError("Version not found in tilingsgui/__init__.py")
setup(
name="tilingsgui",
version=get_version(),
author="Permuta Triangle",
author_email="permutatriangle@gmail.com",
description="A graphical user interface for tilings.",
license="BSD-3",
keywords=("gui permutation tiling pyglet"),
url="https://github.com/PermutaTriangle/tilingsgui",
project_urls={
"Source": "https://github.com/PermutaTriangle/tilingsgui",
"Tracker": "https://github.com/PermutaTriangle/tilingsgui/issues",
},
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),
long_description=read("README.rst"),
install_requires=["pyperclip==1.8.1", "pyglet==1.5.10", "tilings==2.5.0"],
python_requires=">=3.6",
include_package_data=True,
classifiers=[
"Topic :: Education",
"Topic :: Scientific/Engineering :: Mathematics",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
],
entry_points={"console_scripts": ["tilingsgui=tilingsgui.main:main"]},
)