Skip to content

Commit

Permalink
use readme from root
Browse files Browse the repository at this point in the history
  • Loading branch information
seiya-git committed Nov 11, 2023
1 parent 037cf88 commit 5b27306
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions py/setup.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,32 @@
import setuptools

import os
from pathlib import Path

appPath = Path(os.path.abspath(__file__))
while not appPath.is_dir():
appPath = appPath.parents[0]

readmePath = Path(os.path.abspath(f'{appPath}/../README.md'))
long_description = ''

if readmePath.is_file():
with open(readmePath, 'r') as rmf:
long_description = rmf.read()

setuptools.setup(
name='nstools',
version='1.1.2',
url="https://github.com/seiya-dev/NSTools",
long_description="tools for xci/xcz/nsp/nsz",
packages=['nstools.Fs', 'nstools.nut', 'nstools.lib'],
install_requires=[
'zstandard',
'enlighten',
'pycryptodome',
],
python_requires = '>=3.10',
zip_safe = False,
include_package_data = True,
name = 'nstools',
version = '1.1.2',
url = 'https://github.com/seiya-dev/NSTools',
long_description = long_description,
long_description_content_type = 'text/markdown',
packages=['nstools.Fs', 'nstools.nut', 'nstools.lib'],
install_requires=[
'zstandard',
'enlighten',
'pycryptodome',
],
python_requires = '>=3.10',
zip_safe = False,
include_package_data = True,
)

0 comments on commit 5b27306

Please sign in to comment.