Skip to main content

gp.svndevelop package

What is gp.svndevelop ?

This package allow you to checkout some package and use them as developed eggs with zc.buildout.

Why buildout sucks a bit ?

Buildout fail When you specify a develop egg who does not exist:

>>> cd(sample_buildout)

>>> write('buildout.cfg','''
... [buildout]
... develop=my.testing
... parts=
... ''')

>>> print system(buildout)
Develop: '/...buildout/my.testing'
Traceback (most recent call last):
...
IOError: [Errno 2] No such file or directory: '/...buildout/my.testing'
...

A solution: a simple checkout before anything else

A solution is to use this package as a buildout extension and to provide some svn urls in the svn-develop option:

>>> write('buildout.cfg','''
... [buildout]
... extensions=gp.svndevelop
... develop=my.testing
... svn-develop=%s/my.testing/trunk#egg=my.testing
... parts=
... ''' % repository)

Then if you run buildout again, the package will be checkout from the repository:

>>> print system(buildout)
A    my.testing/LICENSE
A    my.testing/my
A    my.testing/my/__init__.py
A    my.testing/my/testing
A    my.testing/my/testing/__init__.py
A    my.testing/my/testing/README.txt
A    my.testing/setup.py
...
Develop: '/...buildout/my.testing'

Using eggs in an existing directory

This extension is also a way to use an existing directory. Imagine you already have the my.testing package in a directory:

>>> ls(package_dir)
-  LICENSE
d  my
-  setup...

Then you don’t want to re-checkout. The solution is to provide a develop-dir:

>>> write('buildout.cfg','''
... [buildout]
... extensions=gp.svndevelop
... develop=my.testing
... develop-dir=%s
... parts=
... ''' % os.path.dirname(package_dir))

We can delete the checkout:

>>> import shutil
>>> shutil.rmtree(os.path.join(sample_buildout, 'my.testing'))

And run buildout again:

>>> print system(buildout)
Develop: '/...Package/my.testing'

It works fine but now the package is not in the buildout dir:

>>> ls(sample_buildout)
-  .installed.cfg
d  bin
-  buildout.cfg
d  develop-eggs
d  eggs
d  parts

Buildout use the one in our develop-dir:

>>> cat(sample_buildout, 'develop-eggs', 'my.testing.egg-link')
/...Package/my.testing
.

Of course you can put the develop-dir option in your ~/.buildout/default.cfg

Omit the develop directive

You can omit the develop option and get develop eggs directly from the svn-develop one:

>>> write('buildout.cfg','''
... [buildout]
... extensions=gp.svndevelop
... svn-develop=%s/my.testing/trunk#egg=my.testing
... parts=
... ''' % repository)

This will install the my.testing package as a develop egg:

>>> print system(buildout)
A    my.testing/LICENSE
A    my.testing/my
A    my.testing/my/__init__.py
A    my.testing/my/testing
A    my.testing/my/testing/__init__.py
A    my.testing/my/testing/README.txt
A    my.testing/setup.py
...
Develop: '/...buildout/my.testing'

Metadata

Release files for gp.svndevelop 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gp.svndevelop 0.1
File Size Uploaded Provenance Actions
gp.svndevelop-0.1.tar.gz 11.1 kB Without provenance Details for gp.svndevelop-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gp.svndevelop 0.1
File Interpreter ABI Platform Actions
gp.svndevelop-0.1-py2.4.egg Legacy Egg format - - Details for gp.svndevelop-0.1-py2.4.egg

Total release size: 19.2 kB

Release files / gp.svndevelop-0.1.tar.gz

Download URL gp.svndevelop-0.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
942935523aff7bdbb4fbd6f846ff14870eaa0134d10842d4a01a02210d1e9bd0
BLAKE2b-256 checksum
How to use checksums
05c6c3931a34af4f45381eb931568f8814f4d2162392a3e6cc6f20094b3db4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / gp.svndevelop-0.1-py2.4.egg

Download URL gp.svndevelop-0.1-py2.4.egg
Size 8.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
654168426a10aee349f4333f2e0d52a43d7c40f44e1f75513001ed785a44370a
BLAKE2b-256 checksum
How to use checksums
3148a0aaaa08f82c4f60adcce4f6bb6ceebab2e7719b3ffb915abadfc53ea1bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for gp.svndevelop 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page