Comments (5)
Good point. We should do that. 👍
from powerfulseal.
Hey! Have been researching this one for a while. Following the fifth option here [0] we might use it for taking the version value in setup.py (and keep it as the single source of truth for the version number), and have the project code use the pkg_resources API for reading the version value. As an example:
import pkg_resources
try:
__version__ = pkg_resources.get_distribution('powerfulseal').version
except Exception:
__version__ = 'unknown'
This is actually how the setuptools [1] contributors manage their own version! [2].
[0] https://packaging.python.org/guides/single-sourcing-package-version/
[1] https://github.com/pypa/setuptools
[2] https://github.com/pypa/setuptools/blob/master/setuptools/version.py
from powerfulseal.
I think that's a pretty neat solution to this problem. Would you like to contribute a PR with that change ?
from powerfulseal.
Sure! Working on it right now.
from powerfulseal.
I think we can close this one.
from powerfulseal.
Related Issues (20)
- cloneAction step fails on schema validation on toxiproxy HOT 13
- Inventory collection HOT 3
- Exception when matching on a node's group HOT 1
- The stopPodsHostAction is not allowed in the CRD HOT 1
- Run probeHTTP on a filter
- Execution in ssh mode fails HOT 1
- Seal prometheus metrics empty HOT 1
- stopPodsHostAction results in schema validation error HOT 2
- checkPodCount ends preemptively when 0 pods remain after pod killing HOT 3
- Affect network traffic after startup HOT 1
- Support all kinds of k8s objects
- Use powerfulseal as library HOT 1
- qol re-route traffic HOT 1
- HTTP probe expected code is ignored HOT 1
- Update CRD to v1
- Wait between scenario runs HOT 2
- pass in kubeconfig.yaml
- Prometheus logs are not generating for seal_pods_kills
- Bump Kubernetes python client version HOT 2
- kubernetes.client.rest.ApiException: (404) error HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerfulseal.