linkedin / linkedin/pygradle

Supress distutils UserWarning

Open
#274 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
603
Forks
142
PR merge metrics
No merged PRs in 30d

Description

> Task :spec-data:packageSdist
/Users/dsully/t2/spec-definitions/build/spec-data/venv/lib/python3.7/site-packages/setuptools/dist.py:397: UserWarning: The version specified ('0.3.6-SNAPSHOT') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
"details." % self.metadata.version

This is useless warning that everyone sees. Can we use Python's `-W` flag to suppress it when creating the sdist?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Gradle configuration for the spec-data:packageSdist task, which invokes the Python environment under build/spec-data/venv. Check how the sdist command is assembled and whether Python's -W option can be passed there; done means the sdist still builds without the reported invalid-version warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.