Skip to main content

CHANGES

0.2

Add .pyo to ignore files

0.1

Initial version

What is svnhelper ?

This package provide some svn utils.

Import

When you importing a package for the first time, you need to create the trunk/branches/tags tree, remove pyc files, .egg-info, etc. svnhelper do it for you.

In a python package, just use:

$ python setup.py import

And you will be prompted for the repository root. Do not add the package name in the url. The name will be retrieved from the current path.

Outside a python package, you can use this command line:

$ svnh -i <repository>

Checkout

To checkout a package, use:

$ svnco <url>

If no branche or tag is found in the url. svnhelper will checkout the trunk.

Testing

It’s not easy to test svn stuff in unit tests. svnhelper provide a testing environment for you.

Here is how to create a temporary repository:

>>> from svnhelper.testing import setUpRepository
>>> from svnhelper.testing import tearDownRepository

>>> def setUp(test):
...     setUpRepository(test)

>>> def tearDown(test):
...     tearDownRepository(test)

Then you can import a directory in the repository. test_package is a directory pointing on a testing egg in the test/ directory:

>>> import_test_package(test_package)

The we can use the repository:

>>> dirname = create_tempdir()
>>> os.chdir(dirname)
>>> print svn('co', '%s/my.testing/trunk' % repository, 'my.testing')
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
Checked out revision 1.

>>> ls(dirname, 'my.testing')
d .svn
- LICENSE
d my
- setup.py

Release files for svnhelper 0.2

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

Source distribution (sdist)

Source distribution for svnhelper 0.2
File Size Uploaded
svnhelper-0.2.tar.gz 42.0 kB Details

Release files / svnhelper-0.2.tar.gz

Download URL svnhelper-0.2.tar.gz
Size 42.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2348fe28888359079f44c535c993cba7b55e534c04cf9c9d846328335165ca79
BLAKE2b-256 checksum
How to use checksums
dd33ee849a75dab885ef20af87b6137d2c9a50e08c44454436b4210051fb5e02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1

2 release files

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