Browse Source

Move to hatch based build

master
Jan Petykiewicz 3 months ago
parent
commit
2700977a76
  1. 3
      .gitignore
  2. 1
      lethe/LICENSE.md
  3. 1
      lethe/README.md
  4. 4
      lethe/VERSION.py
  5. 3
      lethe/__init__.py
  6. 48
      pyproject.toml
  7. 56
      setup.py

3
.gitignore vendored

@ -7,4 +7,5 @@ __pycache__/
build/
dist/
*.egg-info/
.mypy_cache
.mypy_cache/
.pytest_cache/

1
lethe/LICENSE.md

@ -0,0 +1 @@
../LICENSE.md

1
lethe/README.md

@ -0,0 +1 @@
../README.md

4
lethe/VERSION.py

@ -1,4 +0,0 @@
""" VERSION defintion. THIS FILE IS MANUALLY PARSED BY setup.py and REQUIRES A SPECIFIC FORMAT """
__version__ = '''
0.12
'''.strip()

3
lethe/__init__.py

@ -9,7 +9,6 @@ from .lethe import (
)
from .endpoints import main
from .VERSION import __version__
__author__ = 'Jan Petykeiwicz'
__version__ = '0.12'

48
pyproject.toml

@ -0,0 +1,48 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lethe"
description = "Lithography mask library"
readme = "README.md"
license = { file = "LICENSE.md" }
authors = [
{ name="Jan Petykiewicz", email="jan@mpxd.net" },
]
homepage = "https://mpxd.net/code/jan/lethe"
repository = "https://mpxd.net/code/jan/lethe"
keywords = [
"git",
"snapshot",
"commit",
"refs",
"backup",
"undo",
"log",
"lab notebook",
"traceability",
]
classifiers = [
"Programming Language :: Python :: 3",
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: Utilities",
]
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
]
[tool.hatch.version]
path = "lethe/__init__.py"
[project.scripts]
lethe = "lethe.endpoints:main"
lethe-push = "lethe.endpoints:push"
lethe-fetch = "lethe.endpoints:fetch"

56
setup.py

@ -1,56 +0,0 @@
#!/usr/bin/env python3
from setuptools import setup, find_packages
with open('README.md', 'rt') as f:
long_description = f.read()
with open('lethe/VERSION.py', 'rt') as f:
version = f.readlines()[2].strip()
setup(name='lethe',
version=version,
description='Git-based snapshotting',
long_description=long_description,
long_description_content_type='text/markdown',
author='Jan Petykiewicz',
author_email='jan@mpxd.net',
url='https://mpxd.net/code/jan/lethe',
packages=find_packages(),
package_data={
'lethe': ['py.typed'],
},
entry_points={
'console_scripts': [
'lethe=lethe:endpoints.main',
'lethe-push=lethe:endpoints.push',
'lethe-fetch=lethe:endpoints.fetch',
],
},
install_requires=[
'typing',
],
keywords=[
'git',
'snapshot',
'commit',
'refs',
'backup',
'undo',
'log',
'lab notebook',
'traceability',
],
classifiers=[
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Topic :: Software Development :: Version Control :: Git',
'Topic :: Utilities',
],
)
Loading…
Cancel
Save