Skip to content

Commit

Permalink
update cmd options
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Jan 31, 2024
1 parent fc467e3 commit a25fca4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
extras: test pip_only
setup_requires: include
pip: bidict
- uses: mamba-org/setup-micromamba@v1.4.3
- uses: mamba-org/setup-micromamba@v1.8.0
with:
environment-file: ./environment_test.yml
environment-name: demo
Expand Down
89 changes: 0 additions & 89 deletions create_conda_env_file.py

This file was deleted.

16 changes: 11 additions & 5 deletions generate_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ def main():
"setup", type=str, default="pyproject.toml", help="dependency file"
)
parser.add_argument("env", type=str, default="environment.yml", help="output file")
parser.add_argument("--channels", type=str, nargs="*", default=["defaults"])
parser.add_argument("--extras", type=str, nargs="*", default=[])
parser.add_argument("--setup_requires", type=str, default="omit")
parser.add_argument("--pip", type=str, nargs="*", default=[])
parser.add_argument("-c", "--channels", type=str, nargs="*", default=["defaults"])
parser.add_argument("-e", "--extras", type=str, nargs="*", default=[])
parser.add_argument(
"-b",
"--build_system",
"--setup_requires",
type=str,
choices=["omit", "include"],
)
parser.add_argument("-p", "--pip", type=str, nargs="*", default=[])
args = parser.parse_args()

if not Path(args.setup).is_file():
Expand All @@ -42,7 +48,7 @@ def main():
channels=args.channels,
extras=args.extras,
pip=args.pip,
include_build_system=args.setup_requires,
include_build_system=args.build_system,
)


Expand Down
2 changes: 1 addition & 1 deletion test/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ test = [
"pytest",
]
[project.urls]
home_page = "https://github.com/CagtayFabry/pydeps2env"
author = "Cagtay Fabry <[email protected]>"
author_email = "[email protected]"
home_page = "https://github.com/CagtayFabry/pydeps2env"

[build-system]
build-backend = "setuptools.build_meta"
Expand Down

0 comments on commit a25fca4

Please sign in to comment.