Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move utility scripts from scancode-toolkit/etc/release to skeleton #33

Open
JonoYang opened this issue Sep 1, 2021 · 2 comments
Open

Comments

@JonoYang
Copy link
Member

JonoYang commented Sep 1, 2021

We use a series of scripts on scancode-toolkit to collect the wheels and aboutfiles of scancode-toolkit dependencies. It would be useful to have this script in the skeleton if we want all nexb projects to fetch their dependencies from thirdparty.aboutcode.org/pypi

JonoYang added a commit that referenced this issue Sep 2, 2021
JonoYang added a commit that referenced this issue Sep 2, 2021
JonoYang added a commit that referenced this issue Sep 2, 2021
    * Create copyright statement from holder information

Signed-off-by: Jono Yang <[email protected]>
@JonoYang
Copy link
Member Author

JonoYang commented Sep 2, 2021

I'm not sure what is the best way to automate generation of the requirements.txt and requirements-dev.txt files from an uninitialized project.

One process:

  1. After configuring is done, if requirements.txt and requirements-dev.txt is not present, then we copy the site-packages directory to a new temporary location
  2. We install the dependencies for the gen_requirements.py script
  3. We run gen_requirements.py on the copied site-packages directory (This is done so we do not generate a requirements.txt containing the dependencies used by the gen_requirements.py script)
  4. We run gen_requirements_dev.py on the resulting requirements.txt and copied site-packages directory

JonoYang added a commit that referenced this issue Sep 3, 2021
    * This is used for the case where we are starting off a project and have not yet generated requirements files

Signed-off-by: Jono Yang <[email protected]>
JonoYang added a commit that referenced this issue Sep 3, 2021
Signed-off-by: Jono Yang <[email protected]>
JonoYang added a commit that referenced this issue Sep 3, 2021
    * Add --init option to configure.bat
    * Update help text in configure and configure.bat

Signed-off-by: Jono Yang <[email protected]>
JonoYang added a commit that referenced this issue Sep 3, 2021
JonoYang added a commit that referenced this issue Sep 3, 2021
JonoYang added a commit that referenced this issue Sep 3, 2021
@JonoYang
Copy link
Member Author

JonoYang commented Sep 3, 2021

@pombredanne suggested that we do not automate requirements.txt and requirements-dev.txt generation. I've updated the README.rst to have instructions on how to generate those files from a new project.

JonoYang added a commit that referenced this issue Sep 3, 2021
JonoYang added a commit that referenced this issue Sep 3, 2021
@JonoYang JonoYang mentioned this issue Sep 3, 2021
JonoYang added a commit that referenced this issue Sep 4, 2021
    * Update README.rst

Signed-off-by: Jono Yang <[email protected]>
JonoYang added a commit that referenced this issue Sep 4, 2021
    * Update README.rst with instructions for post-initialization usage

Signed-off-by: Jono Yang <[email protected]>
JonoYang added a commit that referenced this issue Sep 7, 2021
    * Replace references to scancode-toolkit repo with links to the skeleton repo

    * Remove --python option from configure.bat

Signed-off-by: Jono Yang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant