Skip to content

Commit

Permalink
create pyproject.toml and other admin stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuhron committed Nov 18, 2024
1 parent 768983b commit bbda9e4
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CleanRequirements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import re

req_fp = "requirements.txt"
ignore_fp = "dev_requirements.txt"

with open(ignore_fp) as f:
ignore_patterns = [x.strip() for x in f.readlines()]
ignore_patterns = [x for x in ignore_patterns if x != ""]

with open(req_fp) as f:
lines = f.readlines()

lines = [l for l in lines if not any(re.match(pattern, l) for pattern in ignore_patterns)]

with open(req_fp, "w") as f:
for l in sorted(lines):
f.write(l)


5 changes: 5 additions & 0 deletions clean_before_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf src/icosalattice.egg-info

9 changes: 9 additions & 0 deletions dev_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
build==.*
-e git\+ssh.*
exceptiongroup==.*
iniconfig==.*
packaging==.*
pluggy==.*
pyproject_hooks==.*
pytest==.*
tomli==.*
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "elgen"
version = "0.0.1"
authors = [
{ name="Wesley Kuhron Jones" },
]
description = "For generating elevation and other data on a lattice, for worldbuilding or other purposes"
readme = "README.md"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: OS Independent",
]

[project.urls]
Homepage = "https://github.com/Kuhron/elgen"
Issues = "https://github.com/Kuhron/elgen/issues"

0 comments on commit bbda9e4

Please sign in to comment.