First time:
python setup.py register
Uploading a new version:
python setup.py check
| # It's convenient to put all postgresql.conf customizations in a included file. | |
| # From bottom postgresql.conf, include as | |
| # include = 'path/to/jsick_postgresql.conf' | |
| # NOTE: you may need to customize some of these columns. | |
| # Note: Increasing max_connections costs ~400 bytes of shared memory per | |
| # connection slot, plus lock space (see max_locks_per_transaction). | |
| max_connections = 100 # (change requires restart) | |
| # Logging |
First time:
python setup.py register
Uploading a new version:
python setup.py check
| if 'CDELT' in header: | |
| pix_scale header['CDELT'] * 3600. | |
| else: | |
| pix_scale = np.sqrt(header['CD1_1'] ** 2. + header['CD1_2'] ** 2.) * 3600. |
I hereby claim:
To claim this, I am signing this object:
| { | |
| repository(name: "sickvim", owner: "jonathansick") { | |
| ref(qualifiedName: "master") { | |
| target { | |
| ... on Commit { | |
| id | |
| history(first: 5) { | |
| pageInfo { | |
| hasNextPage | |
| } |
| from confluent_kafka.admin import AdminClient, NewTopic | |
| default_num_partitions = 1 | |
| default_replication_factor = 3 | |
| client = AdminClient({ | |
| 'bootstrap.servers': 'url...' | |
| }) | |
| # First list existing topics |
| # In unit tests ===================================== | |
| from kafkit.registry.sansio import MockRegistryApi | |
| # The Avro schema that you'll be testing with | |
| schema = {} | |
| # The MockRegistryApi works just like the RegistryApi, but doesn't | |
| # do any network requests. | |
| registryclient = MockRegistryApi() |