-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
103 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
# Python | ||
|
||
__pycache__ | ||
*.egg-info | ||
|
||
# Sphinx Doc | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
PyYAML>=3.1 | ||
PyQt5>=5.6 | ||
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
python-tag = py3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,65 @@ | ||
""" | ||
Setup | ||
Setup | ||
""" | ||
|
||
from setuptools import setup, find_packages | ||
import os | ||
import imperialism_remake.version as vs | ||
|
||
HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
CLASSIFIERS = ['Development Status :: 2 - Pre-Alpha', | ||
'Intended Audience :: End Users/Desktop', | ||
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Games/Entertainment :: Turn Based Strategy'] | ||
|
||
KEYWORDS = 'imperialism remake turn based strategy game open source' | ||
|
||
def get_long_description(): | ||
""" | ||
Get the long description from the README file. | ||
""" | ||
with open(os.path.join(HERE, 'README.md'), encoding='utf-8') as f: | ||
return f.read() | ||
|
||
def get_data_files(): | ||
""" | ||
Get the list of data files (full content of data directory). | ||
""" | ||
data_files = [] | ||
for dirpath, dirnames, filenames in os.walk(os.path.join(HERE, 'data')): | ||
if filenames: | ||
destination = os.path.relpath(dirpath, HERE) | ||
names = [os.path.join(destination, name) for name in filenames] | ||
data_files.append((destination,names)) | ||
return data_files | ||
|
||
def get_data_files2(): | ||
data_files = [] | ||
for dirpath, dirnames, filenames in os.walk(os.path.join(HERE, 'data')): | ||
if filenames: | ||
destination = os.path.relpath(dirpath, HERE) | ||
names = [os.path.join(destination, name) for name in filenames] | ||
data_files.append(names) | ||
return data_files | ||
|
||
if __name__ == "__main__": | ||
setup(name='imperialism_remake', | ||
version=vs.__version__, | ||
description='Open source remake of Imperialism', | ||
long_description=get_long_description(), | ||
url='http://remake.twelvepm.de/', | ||
author='Trilarion', | ||
author_email='pypi@twelvepm.de', | ||
license='GPL', | ||
classifiers=CLASSIFIERS, | ||
keywords=KEYWORDS, | ||
package_dir={'':'source'}, | ||
packages=find_packages(where=os.path.join(HERE, 'source')), | ||
install_requires=['PyYAML>=3.1', 'PyQt5>=5.6'], | ||
#data_files=get_data_files(), | ||
package_data={'imperialism_remake': 'data'}, | ||
entry_points={'console_scripts': ['imperialism_remake_start=imperialism_remake.imperialism_remake:main']}, | ||
zip_safe=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Package imperialism_remake | ||
""" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.