-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create pyproject.toml and other admin stuff
- Loading branch information
Showing
4 changed files
with
55 additions
and
0 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 |
---|---|---|
@@ -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) | ||
|
||
|
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,5 @@ | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
rm -rf src/icosalattice.egg-info | ||
|
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,9 @@ | ||
build==.* | ||
-e git\+ssh.* | ||
exceptiongroup==.* | ||
iniconfig==.* | ||
packaging==.* | ||
pluggy==.* | ||
pyproject_hooks==.* | ||
pytest==.* | ||
tomli==.* |
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,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" |