Skip to content

Commit

Permalink
Merge pull request #171 from cloudblue/fix_requirements_generation
Browse files Browse the repository at this point in the history
Fix requirements.txt generation
  • Loading branch information
ffaraone authored Oct 13, 2022
2 parents 53c6f2c + 38dd114 commit 859901a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
cp dist/*.whl resources/.
- name: Generate pynsist config file
run: |
poetry export --format requirements.txt --without-hashes --output resources/requirements.txt
poetry export --format constraints.txt --without-hashes --output resources/requirements.txt
poetry run python resources/generate_pynsist_config.py
cat resources/ccli.cfg
- name: Build windows installer
Expand Down
2 changes: 0 additions & 2 deletions resources/generate_pynsist_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def get_wheels_and_sdists(): # noqa: CCR001
else:
package_with_ver = line.replace('\n', '')
package, version = package_with_ver.split('==')
if '[' in package and package.endswith(']'):
package = package[0:package.index('[')]
pkg_info = get_package_info(package)
required_version = pkg_info['releases'][version.strip()]
sdist_url = None
Expand Down

0 comments on commit 859901a

Please sign in to comment.